package expression;

import java.math.BigDecimal;

/**
 * Created by luyajie on 2017/1/3.
 *
 * 假发表达式
 */
@ExpressionAn(text = "+", common = "+", rank = -10)
public class PlusExpression implements Expression {
    public Object exec(Object... objs) {
        return new BigDecimal(objs[1].toString()).add(new BigDecimal(objs[2].toString()));
    }
}
